package com.xbongbong.pro.rabbitmq.feign;

import com.xbongbong.paas.toolbox.wrap.XbbResponse;
import com.xbongbong.pro.message.pojo.dto.MessageRabbitMqDTO;
import com.xbongbong.pro.message.pojo.vo.MessageRabbitMqVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name = "pro-web-pc",contextId = "martketingManagementFeignClient")
public interface MartketingManagementFeignClient {

    //****************************************** 营销活动 ******************************************************//

    /**
     * Description: 营销活动上架  消息接口
     *
     * @param messageRabbitMqDTO 消息推送  走消息队列，用于传输数据的
     * @return com.xbongbong.paas.toolbox.wrap.XbbResponse<com.xbongbong.pro.message.pojo.vo.MessageRabbitMqVO>
     * @author 魏荣杰
     * @date 2019/2/27 17:07
     * @since v1.0
     */
    @RequestMapping(value = "/pro/v1/message/mq/marketingManagement/marketing/online", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    XbbResponse<MessageRabbitMqVO> marketingActivityOnline(@RequestBody MessageRabbitMqDTO messageRabbitMqDTO);

    @RequestMapping(value = "/pro/v1/message/mq/marketingManagement/promotion/online", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    XbbResponse<MessageRabbitMqVO> promotionActivityOnline(@RequestBody MessageRabbitMqDTO messageRabbitMqDTO);


    @RequestMapping(value = "/pro/v1/message/mq/marketingManagement/couponGet", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    XbbResponse<MessageRabbitMqVO> couponGetPush(@RequestBody MessageRabbitMqDTO messageRabbitMqDTO);

    @RequestMapping(value = "/pro/v1/message/mq/marketingManagement/couponUse", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    XbbResponse<MessageRabbitMqVO> couponUsePush(@RequestBody MessageRabbitMqDTO messageRabbitMqDTO);
}
